<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<div id='but'>
		</div>
		<script>
			var qq = 11;
			window.onload = function(){
				document.getElementById("but").innerHTML = '<input type = "button" value = "按钮" onclick="fun()"/>';
			}
			function fun(){
				alert("dasdasdasdad");
			}
		</script>
	</body>
</html>
